print (len(set([input() for _ in range(int(input()))])))   
